package com.pw.demo3.service.impl;

import com.pw.demo3.bean.EmployeeRole;
import com.pw.demo3.mapper.EmployeeRoleMapper;
import com.pw.demo3.service.EmployeeRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeRoleServiceImpl implements EmployeeRoleService {

    @Autowired
    EmployeeRoleMapper employeeRoleMapper;

    @Override
    public int insert(EmployeeRole record) {
        return employeeRoleMapper.insert(record);
    }

    @Override
    public List<EmployeeRole> selectAll() {
        return employeeRoleMapper.selectAll();
    }

    @Override
    public List<EmployeeRole> selectById(Long id) {
        return employeeRoleMapper.selectById(id);
    }

    @Override
    public int deleteById(Long id) {
        return employeeRoleMapper.deleteById(id);
    }
}